package zl.ordermanager.po;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Tcustomervisit entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "tcustomervisit", catalog = "ordermanager")
public class Tcustomervisit implements java.io.Serializable {

	// Fields

	private Integer id;

	private String contactDate;

	private String customer;

	private String customerType;

	private String address;

	private String contacts;

	private String department;

	private String job;

	private String telephone;

	private String phone;

	private String fax;

	private String otherContact;

	private String requirment;

	private String remarks;

	private String result;

	private String salesman;

	// Constructors

	/** default constructor */
	public Tcustomervisit() {
	}

	/** minimal constructor */
	public Tcustomervisit(String contactDate, String customer, String customerType, String contacts, String department,
			String job, String requirment, String salesman) {
		this.contactDate = contactDate;
		this.customer = customer;
		this.customerType = customerType;
		this.contacts = contacts;
		this.department = department;
		this.job = job;
		this.requirment = requirment;
		this.salesman = salesman;
	}

	/** full constructor */
	public Tcustomervisit(String contactDate, String customer, String customerType, String address, String contacts,
			String department, String job, String telephone, String phone, String fax, String otherContact,
			String requirment, String remarks, String result, String salesman) {
		this.contactDate = contactDate;
		this.customer = customer;
		this.customerType = customerType;
		this.address = address;
		this.contacts = contacts;
		this.department = department;
		this.job = job;
		this.telephone = telephone;
		this.phone = phone;
		this.fax = fax;
		this.otherContact = otherContact;
		this.requirment = requirment;
		this.remarks = remarks;
		this.result = result;
		this.salesman = salesman;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "contactDate", nullable = false, length = 24)
	public String getContactDate() {
		return this.contactDate;
	}

	public void setContactDate(String contactDate) {
		this.contactDate = contactDate;
	}

	@Column(name = "customer", nullable = false, length = 200)
	public String getCustomer() {
		return this.customer;
	}

	public void setCustomer(String customer) {
		this.customer = customer;
	}

	@Column(name = "customerType", nullable = false, length = 45)
	public String getCustomerType() {
		return this.customerType;
	}

	public void setCustomerType(String customerType) {
		this.customerType = customerType;
	}

	@Column(name = "address", length = 200)
	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	@Column(name = "contacts", nullable = false, length = 45)
	public String getContacts() {
		return this.contacts;
	}

	public void setContacts(String contacts) {
		this.contacts = contacts;
	}

	@Column(name = "department", nullable = false, length = 45)
	public String getDepartment() {
		return this.department;
	}

	public void setDepartment(String department) {
		this.department = department;
	}

	@Column(name = "job", nullable = false, length = 45)
	public String getJob() {
		return this.job;
	}

	public void setJob(String job) {
		this.job = job;
	}

	@Column(name = "telephone", length = 45)
	public String getTelephone() {
		return this.telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	@Column(name = "phone", length = 45)
	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	@Column(name = "fax", length = 45)
	public String getFax() {
		return this.fax;
	}

	public void setFax(String fax) {
		this.fax = fax;
	}

	@Column(name = "otherContact", length = 200)
	public String getOtherContact() {
		return this.otherContact;
	}

	public void setOtherContact(String otherContact) {
		this.otherContact = otherContact;
	}

	@Column(name = "requirment", nullable = false, length = 200)
	public String getRequirment() {
		return this.requirment;
	}

	public void setRequirment(String requirment) {
		this.requirment = requirment;
	}

	@Column(name = "remarks", length = 250)
	public String getRemarks() {
		return this.remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	@Column(name = "result", length = 45)
	public String getResult() {
		return this.result;
	}

	public void setResult(String result) {
		this.result = result;
	}

	@Column(name = "salesman", nullable = false, length = 45)
	public String getSalesman() {
		return this.salesman;
	}

	public void setSalesman(String salesman) {
		this.salesman = salesman;
	}

}